import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
import Home from '@/views/Home'
import Test from '@/views/Test'


const routes = [
    {
        path:'/',
        redirect:'/home'
    },{
        path:'/home',
        name:"Home",
        component:Home
    },{
        path:'/test',
        name:"Test",
        component:Test
    }
]


const router = new VueRouter({
    routes,
    mode:'hash'
})

export default router
